package aduros.util {

/**
 * Super weak but fast encryption of sensitive client data. This is mainly meant to hide obvious
 * values from easily being found and messed with a cheat program.
 */
public class EncryptedInt
{
    public static const KEY :int = 0xBABE25;

    public var crypt :int;

    public function EncryptedInt (value :int = 0)
    {
        this.value = value;
    }

    public function get value () :int
    {
        return crypt ^ KEY;
    }

    public function set value (value :int) :void
    {
        crypt = value ^ KEY;
    }
}

}
